package sql

import (
	"database/sql"
)

func login(db *sql.DB) {
	/*var time = time.Now().Format("2006-01-02 15:04")
	sqlStr := "insert into " +
		"login(name,password) " +
		"values (?,?)"

	stmt, err := db.Prepare(sqlStr)
	if err != nil {
		fmt.Println(err)
		return
	}
	ret, err := stmt.Exec(sales.UserId, sales.Type, sales.Code, sales.Name, sales.Number,
		sales.Area, sales.NumberPlate, sales.ParkingLocation, sales.LogisticsCompany,
		sales.DriverPhone, sales.Supplier, sales.Customer, sales.CustomerPhone, sales.Data)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(ret)
	theId, err := ret.LastInsertId()
	if err != nil {
		fmt.Println("get lastInsert Id failed")
		return
	}
	fmt.Printf("insert success, the id is %d.\n", theId)*/
}
